package cn.tedu.kaifanlav1.customer.service.impl;

import cn.tedu.kaifanlav1.customer.mapper.CustomerMapper;
import cn.tedu.kaifanlav1.customer.pojo.dto.CustomerParam;
import cn.tedu.kaifanlav1.customer.pojo.vo.CustomerVO;
import cn.tedu.kaifanlav1.customer.service.CustomerService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class CustomerServiceImpl implements CustomerService {
    @Autowired
    CustomerMapper customerMapper;

//    @Override
//    public void saveCustomer(CustomerSaveParam customerSaveParam) {
//        log.debug("开始处理添加客户备注业务，参数：{}", customerSaveParam);
//        Customer customer = new Customer();
//        customer.setCreateTime(new Date());
//        customer.setStatus("1");
//        customerMapper.insertNotes(customer);
//    }
@Override
public List<CustomerVO> selectPlaceorders(CustomerParam customerParam) {
    log.debug("查询订单业务:customerParam={}",customerParam);
    List<CustomerVO> list = customerMapper.selectPlaceorders(customerParam);
    log.debug("查询订单业务:list={}",list);
    return list;

}
}
